<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/tag.jsp"%>
<div class="bjui-pageHeader">
    <form id="pagerForm"  action="system/systemMenuList.do" data-toggle="ajaxsearch" data-reload-navtab="true"  method="post">
<%--	     <input type="hidden" name="page.pageSize" value="${page.pageSize}">             --%>
<%--	     <input type="hidden" name="page.pageCurrent" value="${page.pageCurrent}"> --%>
        <ul class="bjui-searchBar">
            <li><label>菜单名：</label><input type="text" value="" name="name" class="form-control" size="15" /></li>
            <li><button type="submit" class="btn-default" data-icon="search">查询</button></li>
            <li><a class="btn btn-orange" href="javascript:;" data-toggle="reloadsearch" data-clear-query="true" data-icon="undo">清空查询</a></li>
            <li class="pull-right">
                <div class="btn-group">
                    <button type="button" class="btn-default dropdown-toggle" data-toggle="dropdown" data-icon="copy">复选框-批量操作<span class="caret"></span></button>
                    <ul class="dropdown-menu right" role="menu">
                        <li><a href="book1.xlsx" data-toggle="doexport" data-confirm-msg="确定要导出信息吗？">导出<span style="color: green;">全部</span></a></li>
                        <li><a href="book1.xlsx" data-toggle="doexportchecked" data-confirm-msg="确定要导出选中项吗？" data-idname="expids" data-group="ids">导出<span style="color: red;">选中</span></a></li>
                        <li class="divider"></li>
                        <li>
                        	<a href="system/deleteMenu.do" data-toggle="doajaxchecked" data-confirm-msg="确定要删除选中项吗？" 
                        		data-idname="delids" data-group="ids">删除选中</a>
                        </li>
                    </ul>
                </div>
            </li>
        </ul> 
    </form>
</div>
<div class="bjui-pageContent">
	<div class="bjui-headBar">
		<ul>
			<li class="left">
			<a href="system/prepareAddMenu.do" class="btn btn-red" data-toggle="dialog" 
				data-width="400" data-height="300"   data-mask="true" data-reload-navtab="true" >添加</a>
			</li>
		</ul>
	</div>
	<table class="table table-bordered table-hover table-striped table-top" data-layout-h="0" data-toggle="tablefixed" 
		data-width="78%"  data-nowrap="true">
        <thead>
            <tr align="center">
				<th align="center" width="3"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"></th>
                <th align="center" width="10">菜单ID</th>
                <th align="center" width="10">上级菜单ID</th>
                <th align="center" width="15">菜单名</th>
                <th align="center" width="25">路径</th>
                <th align="center" width="15">操作</th>
            </tr>
        </thead>
        <tbody>
        	<c:choose>
			<c:when test="${not empty list}">
				<c:forEach items="${list}" var="menu">
					 <tr align="center">
						<td ><input type="checkbox" class="checkboxCtrl" name="ids" data-toggle="icheck" value="${menu.id}"></td>
		                <td align="right">${menu.menuId}</td>
		                <td align="right">${menu.pId}</td>
		                <td align="left">${menu.name}</td>
						<td align="left">${menu.url}</td>
		                <td>
		                    <a href="system/toUpdateMenu.do?id=${menu.id}" class="btn btn-green" data-toggle="dialog" 
		                    data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？" data-width="400" data-height="300" >编辑</a>
		                    &nbsp; &nbsp; &nbsp;
		                    <a href="system/deleteMenu.do?delids=${menu.id}" class="btn btn-red" data-toggle="doajax" data-confirm-msg="确定要删除该行信息吗？">删</a>
		                </td>
		            </tr>
				</c:forEach>
			</c:when>
			<c:otherwise>
				<tr align="center">
					<td colspan="9">
						没有相关数据
					</td>
				</tr>
			</c:otherwise>
		</c:choose>
        </tbody>
    </table>
    <%@include file="/common/paging.jsp" %>
</div>